package com.wwfish.cms.service;

import com.wwfish.cms.model.UserDto;
import com.wwfish.cms.model.exception.NotLoginException;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2010-8-4
 * Time: 9:46:46
 * To change this template use File | Settings | File Templates.
 */
public class UserManagerImpl implements UserManager {
    public UserDto login(String name, String password) {
        UserDto user = new UserDto();
        user.setId(1l);
        user.setName("系统管理员");
        user.setPassword("11111");
        return user;
    }

    public UserDto authenticateUser() throws NotLoginException {
        UserDto user = new UserDto();
        user.setId(1l);
        user.setName("系统管理员");
        user.setPassword("11111");
        return user;
    }
}
